package com.huawei.cloud.phone.management.application.pkg.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.huawei.cloud.phone.management.common.validate.InstallGroup;
import com.huawei.cloud.phone.management.common.validate.NotAllEmpty;
import com.huawei.cloud.phone.management.common.validate.UninstallGroup;
import lombok.Data;

import java.util.Collections;
import java.util.List;

@Data
@NotAllEmpty(names = {"serverIds", "phoneIds"}, message = "phone_info中不能同时没有server_ids和phone_ids", groups = {InstallGroup.class, UninstallGroup.class})
public class PhoneInfoDTO {
    @JsonProperty("server_ids")
    private List<String> serverIds = Collections.emptyList();

    @JsonProperty("phone_ids")
    private List<String> phoneIds = Collections.emptyList();
}
